﻿/*
 * 2023/3/24
 * 审计字段
 * 
 * 
 * **/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.Ph5_2009A.NewShopping.Domain
{
    /// <summary>
    /// 审计字段
    /// </summary>
    public class AudtiField<TKey>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public TKey Id { get; set; }


        /// <summary>
        /// 这条数据的状态
        /// (0表示数据正常，-1表示数据删除或禁用)
        /// </summary>
        public string? State { get; set; } = "0"; 

        /// <summary>
        /// 这条数据的备注描述
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreatedTime { get; set; } = DateTime.UtcNow;

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; } = "admin";

        /// <summary>
        /// 最后一次修改时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 最后一次修改人
        /// </summary>
        public string? UpdatedBy { get; set; }
    }
}
